package lesson5;

public class Demo3 {
    public static void main(String[] args) {
        Person person = new Person();
        person.eat();
        //父类的引用可以指向子类的对象
        Person person2 = new Monk();


        //
        person2.eat();
    }
}
